import request from "@/utils/request";
//定义枚举类统一管理接口
enum API {
  BODY_CATEGORY_LIST = "/hospital/bodyParts/list",
  SUBBODY_LIST = "/hospital/bodyParts/listById", //根据一级部位查询二级部位接口
  SYMPTOM_LIST = "/hospital/partsSymptom/list", //查询症状
}
export const getBodyCategoryListApi = (sex: any) =>
  request.get<any, any>(`${API.BODY_CATEGORY_LIST}?sex=${sex}`);
export const getSubBodyListApi = (parentId: string) =>
  request.get<any, any>(`${API.SUBBODY_LIST}?parentId=${parentId}`);
export const getSymptomListApi = (sex: any, parentId: string) =>
  request.get<any, any>(`${API.SYMPTOM_LIST}?sex=${sex}&parentId=${parentId}`);
